﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace ERP.ERPModels.Production.ProductionManagement
{
    /// <summary>
    /// 生产排产
    /// </summary>
    public class ProductionScheduling : Entity<int>
    {

        /// <summary>
        /// 工单编码
        /// </summary>
        public string OrderCode { get; set; }

        /// <summary>
        /// 工单名称
        /// </summary>
        public string OrderName { get; set; }

        /// <summary>
        /// 来源单据(关联的生产计划或销售订单等)
        /// </summary>
        public string SourceDocument { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductCode { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specification { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 工单计划数量
        /// </summary>
        public int Quantity { get; set; }

        /// <summary>
        /// 工单调整数量(正数表示增加，负数表示减少)
        /// </summary>
        public int AdjustedQuantity { get; set; }

        /// <summary>
        /// 记录创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 记录更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
    }
}
